import request from '@/utils/request'

export function login(data) {
    return request({ url: `/sys/login`, method: 'post', data })
}

//获取用户信息
export function getUserInfo() {
    return request({ url: `/sys/profile`, method: 'post' })
}

//获取用户详细信息
export function getUserDetailInfo(id) {
    return request({ url: `/sys/user/${id}` })
}



